﻿<UserControl x:Class="SPNetworkTopology.ExternalWindows.View.SPListInputView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" 
             mc:Ignorable="d">
    
    <Border Height="260" >
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="15"/>
                <RowDefinition Height="Auto" MinHeight="15"/>
                <RowDefinition Height="15"/>
                <RowDefinition Height="Auto" MinHeight="15" />
                <RowDefinition Height="15"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="23"/>
            </Grid.RowDefinitions>

            <Border Grid.ColumnSpan="2"/>

            <Label Grid.Row="1" Content="SharePoint Site Name:"  />
            <Label Grid.Row="1" Grid.Column="1" Content="*" Visibility="{Binding Path=SiteErrorMessageVisibility}" Foreground="#FFE71D1D"  />
            <TextBox Grid.Column="2" Grid.Row="1" x:Name="txtSPSiteName" Text="{Binding SiteName}"/>

            <Label Grid.Row="3" Content="SharePoint List Name:"   />
            <Label Grid.Row="3" Grid.Column="1" Content="*" Visibility="{Binding Path=ListErrorMessageVisibility}" Foreground="#FFE71D1D"  />
            <TextBox Grid.Column="2" Grid.Row="3" x:Name="txtSPListName" Text="{Binding ListName}" Background="White"/>

            <Grid Grid.ColumnSpan="3" Grid.Row="5">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="10"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="10"/>
                </Grid.RowDefinitions>
                <Border Grid.Row="0"></Border>
                <StackPanel Orientation="Vertical" Grid.Row="2" d:LayoutOverrides="Height">
                    <Label Content="* Error message(s)" Visibility="{Binding Path=ErrorMessageVisibility}" Foreground="#FFE71D1D" FontSize="14" BorderThickness="0,0,0,1" BorderBrush="#FFE44343"></Label>
                    <TextBlock Text="{Binding ValidationMessage}" TextWrapping="Wrap" TextAlignment="Justify" Padding="3" FontSize="13.333" Height="97.08" Foreground="#FFE71D1D"/>
                </StackPanel>
                <Border Grid.Row="3"/>
            </Grid>
            <ProgressBar IsIndeterminate="True" Grid.Row="6" Grid.ColumnSpan="3" Visibility="{Binding Path=IsProgressbarVisible}" VerticalAlignment="Bottom" MinHeight="18" Orientation="Horizontal" LargeChange="10" VerticalContentAlignment="Bottom"></ProgressBar>
        </Grid>
    </Border>
</UserControl>
